Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

casts.h Rd

Rd[31:16] = Rd[15];
d ∈ {0, 1, …, 15}

Rev1+

010111001000

Rd

12

4

2

casts.b Rd

Rd[31:8] = Rd[7];
d ∈ {0, 1, …, 15}

Rev1+

010111000110

Rd

12

4

Description

Sign extends the halfword or byte that is specified to word size. The result is stored back to the specified register.

Status Flags:

Q:

Not affected.

V:

Not affected.

N:

N = RES[31]

Z:

Z = (RES[31:0] == 0)

C:

C = RES[31]